<style type="text/css">
    .search-baigiang-view{
        margin-top: 5px;
    }
    
    .search-baigiang-view .thumb{
               
    }
    
    .search-baigiang-view .desc{
        
    }
    
    .items a{
        text-decoration: none;
    }
    
    .items table{
        margin-bottom: 0px;
        border-bottom: 1px solid grey;
    }
</style>

<?php
/* @var $this SiteController */

$this->pageTitle=Yii::app()->name;
?>
<div class="left-col">    
        <?php
                $this->beginWidget('zii.widgets.CPortlet', array(
                        'title'=>"Result for \"$keyword\"",
                ));
                        $this->widget('zii.widgets.CListView', array(
                                'dataProvider'=>$dataProvider,
                                'itemView'=>'_search_baigiang_view',
                        ));
                $this->endWidget();
        ?>
</div>

<div class="right-col">
    <?php
        if (!isset(Yii::app()->user->userId) ) {
                $this->beginWidget('zii.widgets.CPortlet', array(
                        'title'=>'Đăng nhập',
                ));
                        $this->renderPartial('_login');
                $this->endWidget();
        }
        
        $this->beginWidget('zii.widgets.CPortlet', array(
                    'title'=>'Tìm kiếm',
            ));
                $this->renderPartial('_search', array('keyword'=>$keyword));
        $this->endWidget(); 
        
        $this->beginWidget('zii.widgets.CPortlet', array(
                'title'=>'Thư mục bài giảng',
        ));
                $this->widget('CTreeView',array(
                            'data'=>$this->getFolderTreeData(),
                            'animated'=>'fast', //quick animation
                            'collapsed'=>'false',//remember must giving quote for boolean value in here
                            'htmlOptions'=>array(
                                    'class'=>'treeview-red',//there are some classes that ready to use
                            ),
                ));
        $this->endWidget();
        
    ?>
</div>

<div style="clear: both"></div>